<?php

namespace app\site\validate;

use think\Validate;

class KefuChatLogValidate extends Validate
{


    protected $rule = [
        'id' => 'require',
        'from_uid' => 'require',
        'to_uid' => 'require',
        'content' => 'require',
        'content_type' => 'require',
        'msg_type' => 'require',
    ];

    protected $message = [
        'id.require' => '缺少id【id】',
        'kefu_uid.require' => '缺少客服id【kefu_uid】',
        'user_uid.require' => '缺少用户id【user_uid】',
        'content.require' => '缺少聊天内容【content】',
        'content_type.require' => '缺少内容类型【content_type】',
        'msg_type.require' => '缺少消息类型【msg_type】',
    ];


}
